package com.css.fxfzypg.manage.sampling.service;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.manage.sampling.repository.entity.SamplingEntity;
import com.css.fxfzypg.manage.sampling.vo.SamplingParams;

import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

public interface SamplingService {

    boolean insertSurvey(SamplingEntity samplingEntity) throws UnsupportedEncodingException;

    Map<String,Object>  querySubmitOrNot(String submitFlag, String taskCode, int curPage, int pageSize, String userId);

    boolean updateIsSubmit(Map<String,String> map);

    SamplingEntity queryData(String id);

    boolean modifyData(SamplingEntity samplingEntity);

    Map<String, Object> querySamplingData(SamplingParams queryParams, int curPage, int pageSize);

    boolean deleteSampling(String ids);

    boolean saveAndSubmit(SamplingEntity samplingEntity) throws UnsupportedEncodingException;

    boolean modifyAndSubmit(SamplingEntity samplingEntity);
}
